import request from '@/utils/request'

// 查询空气质量小时列表
export function listAirQualityHour(query) {
  return request({
    url: '/aqi/airQualityHour/list',
    method: 'get',
    params: query
  })
}

// 查询空气质量小时详细
export function getAirQualityHour(id) {
  return request({
    url: '/aqi/airQualityHour/' + id,
    method: 'get'
  })
}

// 新增空气质量小时
export function addAirQualityHour(data) {
  return request({
    url: '/aqi/airQualityHour',
    method: 'post',
    data: data
  })
}

// 修改空气质量小时
export function updateAirQualityHour(data) {
  return request({
    url: '/aqi/airQualityHour',
    method: 'put',
    data: data
  })
}

// 删除空气质量小时
export function delAirQualityHour(id) {
  return request({
    url: '/aqi/airQualityHour/' + id,
    method: 'delete'
  })
}
